package com.friend.controller.user;

import com.common.core.controller.BaseController;
import com.common.core.domain.TableDataInfo;
import com.common.core.domain.dto.PageQueryDTO;
import com.friend.service.user.UserMessageService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
public class UserMessageController extends BaseController {

    @Resource
    UserMessageService userMessageService;

    /**
     *获取我的消息列表
     *
     */
    @GetMapping("/list")
    public TableDataInfo list(PageQueryDTO pageQueryDTO){
        return userMessageService.list(pageQueryDTO);
    }
}
